<?php
/**
 * Functions for ther setting page in admin.
 *
 * The setting page for the jamnews plugin - this file contains functions to display
 * and save the list of post type.
 *
 * @author 		VoAnhKiet
 * @category 	Admin
 * @package 	jamnews/Admin/Page
 * @version     1.6.4
 */
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

if(!function_exists('jamnews_manager_setting')){
	function jamnews_manager_setting(){
		global $jamnews;
		$taxonomy = $jamnews->db_get_taxonomy();
		
		// Tab labels
		$tab_labels = array(
			'general' => __('General Settings','jamnews'),
			'style' => __('Styling Options'),
			'typography' => __('Typography','jamnews'),
            'dynamic-images' => __('Dynamic Images','jamnews'),
            'contact' => __('Contact','jamnews')
		);
		
		// Tabs fields
		$tab_fields = array();
		?>
		<div class="wrap jamnews">
			<div id="icon-options-general" class="icon32"><br /></div>
			<h2>
				<?php echo __("General Settings",'jamnews');?>
			</h2>
			
			<form method="post" id="addform" action="" enctype="multipart/form-data">
				<?php wp_nonce_field( 'jamnews_admin_posttype', '_wpnonce', true, true ); ?>
				<div id="poststuff">
					<div id="post-body-content">
						<!-- Begin tab -->
						<ul class="nav nav-tabs">
						<?php $count = 0; foreach($tab_labels as $key => $value){ ?>
							<li <?php echo ($count==0?" class='active'":"")?>>
								<a href="#<?php echo $key; ?>" data-toggle="tab"><?php echo $value; ?></a>
							</li>
						<?php $count++; } ?>
						</ul>
						<div class="tab-content">
							<?php $count = 0; foreach($tab_fields as $key => $tab_content){ ?>
							<div class="tab-pane<?php echo ($count==0?" active":"");?>" id="<?php echo $key;?>">
								<?php //jamnews_admin_fields($tab_content)?>
							</div>
							<?php $count++; } ?>
						</div>
						<!-- End tab-content -->
						<br/>
						<div class="button-group">
							<input type="submit" name="btn-add-post-type" class="btn" value="<?php echo __("Save All Changes","jamnews")?>" />
						</div>
					</div>
			</form>
		
		</div>
		<?php
	}
}